package com.turing.mission.service;

import com.alibaba.fastjson.JSONObject;
import com.turing.mission.entity.Mission;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import result.Result;

import java.text.ParseException;

/**
* @author dell
* @description 针对表【mission(任务)】的数据库操作Service
* @createDate 2023-05-08 22:36:13
*/
public interface MissionService extends IService<Mission> {

    Result miList(String startTime, String endTime, String merchantName, String longitude, String latitude, String cityId, String merchantId, String mtId, Integer sortType, Integer orderType, Integer pageNum, Integer pageSize);

    Result geMissionById(String id) throws ParseException;

    Result missonEdit(JSONObject jsonObject);

    Result missonSave(JSONObject jsonObject);

    Result missonFreeze(JSONObject jsonObject);

    Result missionGoodState(String missionId);

    Result missonSign(JSONObject jsonObject) throws ParseException;

    void simpleSchedule();

    boolean checkTitle(String merchantId, String missionTitle, String missionId);

    Result miListByIds(String[] ids);
}
